
include $(PROJ_ROOT_PATH)/board.mk
include $(PROJ_ROOT_PATH)/config.mk

OUTPUT = huawei

# source file
SRCS = main.c

OBJS = $(patsubst %.c,%.o,$(SRCS))

# LIBS += -lm

# Where are include files kept
# INCLUDES += -I$(BUS_PATH)/uart
# INCLUDES += -I$(MIDDLEWARE_PATH)/lua

# Option for development
CFLAGS = -g -O2 -Wall
# Option for release
# CFLAGS = -O -Wall


$(OUTPUT): $(OBJS)
	$(AT)$(CC) $^ -o $(BIN_PATH)$@ $(INCLUDES) $(LIBS) -L$(LIBS_PATH)

$(OBJS):%.o:%.c
	$(AT)echo "OBJS: $(OBJS)"
	$(AT)$(CC) -c $< $(CFLAGS) $(INCLUDES) $(LIBS) -o $@


.PHONY: clean
clean:
	$(AT)-rm -rf $(OBJS)

